package com.zfy.entity;

public class Product {
    private Integer pid;
    private String pname;
    private Double pprice;
    private Integer pstock;
    private Integer cid;
    private String cname;
    private String pintro;
    private String pimg;
    private Integer pstate;

    public Product(){

    }

    public Product(Integer pid, String pname, Double pprice, Integer pstock, Integer cid, String pintro, String pimg, Integer pstate) {
        this.pid = pid;
        this.pname = pname;
        this.pprice = pprice;
        this.pstock = pstock;
        this.cid = cid;
        this.pintro = pintro;
        this.pimg = pimg;
        this.pstate = pstate;
    }

    public Product(Integer pid, String pname, Double pprice, Integer pstock, Integer cid, String cname, String pintro, String pimg, Integer pstate) {
        this.pid = pid;
        this.pname = pname;
        this.pprice = pprice;
        this.pstock = pstock;
        this.cid = cid;
        this.cname = cname;
        this.pintro = pintro;
        this.pimg = pimg;
        this.pstate = pstate;
    }

    public Integer getPid() {
        return pid;
    }

    public Product setPid(Integer pid) {
        this.pid = pid;
        return this;
    }

    public String getPname() {
        return pname;
    }

    public Product setPname(String pname) {
        this.pname = pname;
        return this;
    }

    public Double getPprice() {
        return pprice;
    }

    public Product setPprice(Double pprice) {
        this.pprice = pprice;
        return this;
    }

    public Integer getPstock() {
        return pstock;
    }

    public Product setPstock(Integer pstock) {
        this.pstock = pstock;
        return this;
    }

    public Integer getCid() {
        return cid;
    }

    public Product setCid(Integer cid) {
        this.cid = cid;
        return this;
    }

    public String getCname() {
        return cname;
    }

    public Product setCname(String cname) {
        this.cname = cname;
        return this;
    }

    public String getPintro() {
        return pintro;
    }

    public Product setPintro(String pintro) {
        this.pintro = pintro;
        return this;
    }

    public String getPimg() {
        return pimg;
    }

    public Product setPimg(String pimg) {
        this.pimg = pimg;
        return this;
    }

    public Integer getPstate() {
        return pstate;
    }

    public Product setPstate(Integer pstate) {
        this.pstate = pstate;
        return this;
    }
}
